From 46e754a17d267476daca4ea8fe879060c71a7f54 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 Oct 2020 11:22:09 -0400 Subject: [PATCH] a11y: Skip non-presented children when required Whenever we determine the index of a child, we need to skip its non-presented siblings. --- gtk/a11y/gtkatspicontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 18a1d7ff9c..2e838b1ef6 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -1168,6 +1168,9 @@ gtk_at_spi_context_child_change (GtkATContext *ctx, iter != NULL; iter = gtk_widget_get_next_sibling (iter)) { + if (!gtk_accessible_should_present (GTK_ACCESSIBLE (iter))) + continue; + if (iter == child_widget) break; -- 2.30.2